<?php
require_once 'simpletest/unit_tester.php';
require_once 'simpletest/reporter.php';
require_once dirname(__FILE__) . '/../textarea.php';

class TextAreaTest extends UnitTestCase
{
	/**
	 * 空のテキストエリアを作成する
	 */
	public function Test1100()
	{
		$sCompileDir = COMPILE_DIR;
		$sCompileId = 'test';
		$Name = "test";
		$Width = 50;
		$Height = 30;
		$object
		= new Smarty_Components_TextArea(
				$sCompileDir,
				$sCompileId,
				$Name,
				$Width,
				$Height);
		$RET = $object->fetch();
		echo $RET;
	}

	/**
	 * 初期表示文字有りのテキストエリアを作成する
	 */
	public function Test1200()
	{
		$sCompileDir = COMPILE_DIR;
		$sCompileId = 'test';
		$Name = "test2";
		$Width = 50;
		$Height = 30;
		$object
		= new Smarty_Components_TextArea(
				$sCompileDir,
				$sCompileId,
				$Name,
				$Width,
				$Height,
				"初期表示文字");
		$RET = $object->fetch();
		echo $RET;
	}
}